import request from '@/utils/request'

// 查询货物配送列表
export function listDelivery(query) {
  return request({
    url: '/bysj/storekeeper/list',
    method: 'get',
    params: query
  })
}

// 查询货物配送详细
export function getDelivery(deliveryId) {
  return request({
    url: '/bysj/storekeeper/' + deliveryId,
    method: 'get'
  })
}


// 修改货物配送
export function updateDelivery(data) {
  return request({
    url: '/bysj/storekeeper',
    method: 'put',
    data: data
  })
}

// 查询仓库存储列表
export function listGoods(query) {
  return request({
    url: '/bysj/storekeeper/goodsList',
    method: 'get',
    params: query
  })
}

// 查询货物详细
export function getGoods(deliveryId) {
  return request({
    url: '/bysj/storekeeper/goods/' + deliveryId,
    method: 'get'
  })
}
